package com.base;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.base.find.R;

@Route(path = "/find/main")
public class FindActivity extends AppCompatActivity {
    @Autowired
    public String name,title,content;
    private TextView tvname;
    private TextView tvtitle;
    private TextView tvcontent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_find);
        ARouter.getInstance().inject(this);
        initData();
        initView();
    }

    private void initData() {
    }

    private void initView() {
        tvname = findViewById(R.id.name);
        tvtitle = findViewById(R.id.title);
        tvcontent = findViewById(R.id.content);
        Log.d("data",name+title+content+"");
        tvname.setText(name);
        tvtitle.setText(title);
        tvcontent.setText(content);
    }
}
